-- GENERATED SPELL FOR [Shadowy Hunter] --


function spell0_18718(pUnit, Event) --@Raptor Strike,n/a--
pUnit:FullCastSpellOnTarget(32915,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18718', 660, 1)
end

function spell1_18718(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(32908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18718', 10309, 1)
end

function Sorts_18718(pUnit, Event)
local choix_sorts_18718 = math.random(0, 1)
if choix_sorts_18718 == 0 then
pUnit:RegisterEvent('spell0_18718', 1, 1)
end
if choix_sorts_18718 == 1 then
pUnit:RegisterEvent('spell1_18718', 1, 1)
end
end

function mob18718_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18718', math.random(1500, 3000), 1)
end

function mob18718_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18718_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18718_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18718, 1, 'mob18718_Action')
RegisterUnitEvent(18718, 2, 'mob18718_Leave')
RegisterUnitEvent(18718, 3, 'mob18718_Kill')
RegisterUnitEvent(18718, 4, 'mob18718_Die')
